package com.chezai.client.global.location.rx;

import android.location.Location;
import android.location.LocationManager;
import android.support.annotation.CheckResult;
import android.support.annotation.NonNull;


public class RxLocation {
    @CheckResult
    @NonNull
    public static InitialValueObservable<Location> locationChanges(@NonNull LocationManager lm) {
        if (lm == null) {
            throw new NullPointerException("lm == null");
        }
        return new LocationObservable(lm);
    }
}
